import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '居民id',
    dataIndex: 'id',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '姓名',
    dataIndex: 'name',

    align: 'center',
    width: 200,
  },
  {
    title: '曾用名',
    dataIndex: 'formerName',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '户主',
    dataIndex: 'householder',

    align: 'center',
    width: 200,
  },
  {
    title: '户主关系',
    dataIndex: 'householderRelation',

    align: 'center',
    width: 200,
  },
  {
    title: '身份证',
    dataIndex: 'idCard',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '户口类型',
    dataIndex: 'hkType',

    customRender: ({ record }) => {
      const options = [
        {
          label: '农村',
          value: '农村',
        },
        {
          label: '城镇',
          value: '城镇',
        },
      ];
      return options.find((op) => op.value === record.hkType)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '组号',
    dataIndex: 'groupNumber',

    align: 'center',
    width: 200,
  },
  {
    title: '户口本号',
    dataIndex: 'hkbNumber',

    align: 'center',
    width: 200,
  },

  {
    title: '签发机关',
    dataIndex: 'issuingAuthority',

    align: 'center',
    width: 200,
  },
  {
    title: '签发日期',
    dataIndex: 'issuingDate',

    align: 'center',
    width: 200,
  },
  {
    title: '出生日期',
    dataIndex: 'birthDate',

    align: 'center',
    width: 200,
  },
  {
    title: '出生地',
    dataIndex: 'birthPlace',

    align: 'center',
    width: 200,
  },
  {
    title: '性别',
    dataIndex: 'sex',

    align: 'center',
    width: 200,
  },
  {
    title: '身高（cm）',
    dataIndex: 'height',

    align: 'center',
    width: 200,
  },
  {
    title: '血型',
    dataIndex: 'bloodType',

    customRender: ({ record }) => {
      const options = [
        {
          label: 'A型',
          value: 'A型',
        },
        {
          label: 'B型',
          value: 'B型',
        },
        {
          label: '0型',
          value: '0型',
        },
        {
          label: 'AB型',
          value: 'AB型',
        },
        {
          label: '熊猫型',
          value: '熊猫型',
        },
      ];
      return options.find((op) => op.value === record.bloodType)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '健康状况',
    dataIndex: 'health',

    align: 'center',
    width: 200,
  },
  {
    title: '户籍所在地',
    dataIndex: 'hjAddr',

    align: 'center',
    width: 200,
  },
  {
    title: '民族（汉/黎等）',
    dataIndex: 'nation',

    align: 'center',
    width: 200,
  },
  {
    title: '籍贯',
    dataIndex: 'nativePlace',

    align: 'center',
    width: 200,
  },
  {
    title: '现居地点',
    dataIndex: 'nowAddr',

    align: 'center',
    width: 200,
  },
  {
    title: '其他地址',
    dataIndex: 'otherAddr',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '联系电话',
    dataIndex: 'contactNumber',

    align: 'center',
    width: 200,
  },
  {
    title: '文化程度',
    dataIndex: 'cultureType',

    customRender: ({ record }) => {
      const options = [
        {
          label: '无',
          value: '无',
        },
        {
          label: '小学',
          value: '小学',
        },
        {
          label: '初中',
          value: '初中',
        },
        {
          label: '高中',
          value: '高中',
        },
        {
          label: '大学',
          value: '大学',
        },
        {
          label: '研究生',
          value: '研究生',
        },
        {
          label: '博士',
          value: '博士',
        },
      ];
      return options.find((op) => op.value === record.cultureType)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '婚姻状况',
    dataIndex: 'maritalStatus',

    customRender: ({ record }) => {
      const options = [
        {
          label: '已婚',
          value: '已婚',
        },
        {
          label: '未婚',
          value: '未婚',
        },
      ];
      return options.find((op) => op.value === record.maritalStatus)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '兵役状况',
    dataIndex: 'militaryServiceStatus',

    align: 'center',
    width: 200,
  },
  {
    title: '宗教信仰',
    dataIndex: 'religion',

    align: 'center',
    width: 200,
  },
  {
    title: '职业',
    dataIndex: 'profession',

    align: 'center',
    width: 200,
  },
  {
    title: '政治面貌',
    dataIndex: 'politicsStatus',

    customRender: ({ record }) => {
      const options = [
        {
          label: '群众',
          value: '群众',
        },
        {
          label: '共青团员',
          value: '共青团员',
        },
        {
          label: '中共党员',
          value: '中共党员',
        },
      ];
      return options.find((op) => op.value === record.politicsStatus)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '户籍状态',
    dataIndex: 'hjStatus',

    customRender: ({ record }) => {
      const options = [
        {
          label: '在籍',
          value: '在籍',
        },
        {
          label: '不在籍',
          value: '不在籍',
        },
      ];
      return options.find((op) => op.value === record.hjStatus)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '登记日期',
    dataIndex: 'registDate',

    align: 'center',
    width: 200,
  },
  {
    title: '家庭',
    dataIndex: 'familyId',
    defaultHidden: true,
    align: 'center',
    width: 200,
  },
  {
    title: '是否困难群体',
    dataIndex: 'isDifficultGroup',
    customRender: ({ record }) => {
      return record.isDifficultGroup ? '是' : '否';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '年龄',
    dataIndex: 'age',

    align: 'center',
    width: 200,
  },
  {
    title: '就业状况（失业、在业）',
    dataIndex: 'employmentStatus',

    customRender: ({ record }) => {
      const options = [
        {
          label: '失业',
          value: '失业',
        },
        {
          label: '就业',
          value: '就业',
        },
      ];
      return options.find((op) => op.value === record.employmentStatus)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '是否残疾',
    dataIndex: 'isDisability',
    customRender: ({ record }) => {
      return record.isDisability ? '是' : '否';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '残疾等级',
    dataIndex: 'disabilityLevel',

    customRender: ({ record }) => {
      const options = [
        {
          label: 'A级',
          value: 'A级',
        },
        {
          label: 'B级',
          value: 'B级',
        },
        {
          label: 'C级',
          value: 'C级',
        },
        {
          label: 'D级',
          value: 'B级',
        },
        {
          label: '暂无',
          value: '暂无',
        },
      ];
      return options.find((op) => op.value === record.disabilityLevel)?.label || '暂无';
    },
    align: 'center',
    width: 200,
  },
  {
    title: '备注',
    dataIndex: 'remark',
    align: 'center',
    ifShow: false,
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'dateCreated',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '修改时间',
    dataIndex: 'dateModified',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '创建人id',
    dataIndex: 'createdBy',
    defaultHidden: true,
    align: 'center',
    ifShow: false,
    width: 200,
  },
  {
    title: '创建人',
    dataIndex: 'createdByName',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '修改人Id',
    dataIndex: 'modifiedBy',
    ifShow: false,
    align: 'center',
    width: 200,
  },
  {
    title: '修改人',
    dataIndex: 'modifiedByName',
    ifShow: false,
    align: 'center',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'hkType',
    label: '户口类型',
    component: 'Select',
    componentProps: {
      placeholder: '请选择户口类型',
      options: [
        {
          label: '农村',
          value: '农村',
        },
        {
          label: '城镇',
          value: '城镇',
        },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'name',
    label: '姓名',
    component: 'Input',
    componentProps: {
      placeholder: '请输入姓名',
    },
    colProps: { span: 6 },
  },
  {
    field: 'householder',
    label: '户主',
    component: 'Input',
    componentProps: {
      placeholder: '请输入户主',
    },
    colProps: { span: 6 },
  },
  {
    field: 'householderRelation',
    label: '户主关系',
    component: 'Input',
    componentProps: {
      placeholder: '请输入户主关系',
    },
    colProps: { span: 6 },
  },
  {
    field: 'idCard',
    label: '身份证',
    component: 'Input',
    componentProps: {
      placeholder: '请输入身份证',
    },
    colProps: { span: 6 },
  },
  {
    field: 'birthPlace',
    label: '出生地',
    component: 'Input',
    componentProps: {
      placeholder: '请输入出生地',
    },
    colProps: { span: 6 },
  },
  {
    field: 'nowAddr',
    label: '现居地点',
    component: 'Input',
    componentProps: {
      placeholder: '请输入现居地点',
    },
    colProps: { span: 6 },
  },
  {
    field: 'contactNumber',
    label: '联系电话',
    component: 'Input',
    componentProps: {
      placeholder: '请输入联系电话',
    },
    colProps: { span: 6 },
  },
  {
    field: 'cultureType',
    label: '文化程度',
    component: 'Select',
    componentProps: {
      placeholder: '请选择文化程度',
      options: [
        {
          label: '小学',
          value: '小学',
        },
        {
          label: '初中',
          value: '初中',
        },
        {
          label: '高中',
          value: '高中',
        },
        {
          label: '大学',
          value: '大学',
        },
        {
          label: '研究生',
          value: '研究生',
        },
        {
          label: '博士',
          value: '博士',
        },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'maritalStatus',
    label: '婚姻状况',
    component: 'Select',
    componentProps: {
      placeholder: '请选择婚姻状况',
      options: [
        {
          label: '已婚',
          value: '已婚',
        },
        {
          label: '未婚',
          value: '未婚',
        },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'politicsStatus',
    label: '政治面貌',
    component: 'Select',
    componentProps: {
      placeholder: '请选择政治面貌',
      options: [
        {
          label: '群众',
          value: '群众',
        },
        {
          label: '共青团员',
          value: '共青团员',
        },
        {
          label: '中共党员',
          value: '中共党员',
        },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'hjStatus',
    label: '户籍状态',
    component: 'Select',
    componentProps: {
      placeholder: '请选择户籍状态',
      options: [
        {
          label: '在籍',
          value: '在籍',
        },
        {
          label: '不在籍',
          value: '不在籍',
        },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'age',
    label: '年龄',
    component: 'Input',
    componentProps: {
      placeholder: '请输入年龄',
    },
    colProps: { span: 6 },
  },
  {
    field: 'employmentStatus',
    label: '就业状况（失业、在业）',
    component: 'Select',
    componentProps: {
      placeholder: '请选择就业状况（失业、在业）',
      options: [
        {
          label: '失业',
          value: '失业',
        },
        {
          label: '就业',
          value: '就业',
        },
      ],
    },
    colProps: { span: 6 },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '居民id',
    component: 'Input',
    show: false,
    required: false,
    componentProps: {
      disabled: false,
      placeholder: '请输入居民id',
    },
    colProps: { span: 12 },
  },
  {
    field: 'hkType',
    label: '户口类型',
    component: 'Select',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请选择户口类型',
      options: [
        {
          label: '农村',
          value: '农村',
        },
        {
          label: '城镇',
          value: '城镇',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'groupNumber',
    label: '组号',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入组号',
    },
    colProps: { span: 12 },
  },
  {
    field: 'hkbNumber',
    label: '户口本号',
    component: 'Input',
    show: true,
    required: true,
    componentProps: {
      showSearch: true,
      /* api: getOpmsFixFamilyInfoList,
      labelField: 'hkbNumber',
      valueField: 'hkbNumber',*/
      placeholder: '请输入户口本号',
    },
    colProps: { span: 12 },
  },
  {
    field: 'name',
    label: '姓名',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入姓名',
    },
    colProps: { span: 12 },
  },
  {
    field: 'formerName',
    label: '曾用名',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入曾用名',
    },
    colProps: { span: 12 },
  },
  {
    field: 'householder',
    label: '户主',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入户主',
    },
    colProps: { span: 12 },
  },
  {
    field: 'householderRelation',
    label: '户主关系',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入户主关系',
    },
    colProps: { span: 12 },
  },
  {
    field: 'idCard',
    label: '身份证',
    component: 'Input',
    show: true,
    required: true,
    rules: [
      {
        validator: (rule, value, callback: (error?: string) => void) => {
          console.log('--》', rule);
          const reg =
            /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
          if (!reg.test(value)) {
            callback('请输入正确的身份证格式');
            return;
          }
          callback();
        },
      },
    ],
    componentProps: {
      disabled: false,
      placeholder: '请输入身份证',
    },
    colProps: { span: 12 },
  },
  {
    field: 'issuingAuthority',
    label: '签发机关',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入签发机关',
    },
    colProps: { span: 12 },
  },
  {
    field: 'issuingDate',
    label: '签发日期',
    component: 'DatePicker',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入签发日期',
      style: { width: '100%' },
    },
    colProps: { span: 12 },
  },
  {
    field: 'birthDate',
    label: '出生日期',
    component: 'DatePicker',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入出生日期',
      style: { width: '100%' },
    },
    colProps: { span: 12 },
  },
  {
    field: 'birthPlace',
    label: '出生地',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入出生地',
    },
    colProps: { span: 12 },
  },
  {
    field: 'sex',
    label: '性别',
    component: 'Select',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入性别',
      options: [
        { label: '男', value: '男' },
        { label: '女', value: '女' },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'height',
    label: '身高（cm）',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入身高（cm）',
    },
    colProps: { span: 12 },
  },
  {
    field: 'bloodType',
    label: '血型',
    component: 'Select',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请选择血型',
      options: [
        {
          label: 'A型',
          value: 'A型',
        },
        {
          label: 'B型',
          value: 'B型',
        },
        {
          label: '0型',
          value: '0型',
        },
        {
          label: 'AB型',
          value: 'AB型',
        },
        {
          label: '熊猫型',
          value: '熊猫型',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'health',
    label: '健康状况',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入健康状况',
    },
    colProps: { span: 12 },
  },
  {
    field: 'hjAddr',
    label: '户籍所在地',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入户籍所在地',
    },
    colProps: { span: 12 },
  },
  {
    field: 'nation',
    label: '民族',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入民族（汉/黎等）',
    },
    colProps: { span: 12 },
  },
  {
    field: 'nativePlace',
    label: '籍贯',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入籍贯',
    },
    colProps: { span: 12 },
  },
  {
    field: 'nowAddr',
    label: '现居地点',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入现居地点',
    },
    colProps: { span: 12 },
  },
  {
    field: 'otherAddr',
    label: '其他地址',
    component: 'Input',
    show: true,
    required: false,
    componentProps: {
      disabled: false,
      placeholder: '请输入其他地址',
    },
    colProps: { span: 12 },
  },
  {
    field: 'contactNumber',
    label: '联系电话',
    component: 'Input',
    show: true,
    required: true,
    rules: [
      {
        validator: (rule, value, callback: (error?: string) => void) => {
          console.log('-->', rule);
          const reg = /0?(13|14|15|18|17)[0-9]{9}/;
          if (!reg.test(value)) {
            callback('请输入正确的联系电话格式');
            return;
          }
          callback();
        },
      },
    ],
    componentProps: {
      disabled: false,
      placeholder: '请输入联系电话',
    },
    colProps: { span: 12 },
  },
  {
    field: 'cultureType',
    label: '文化程度',
    component: 'Select',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请选择文化程度',
      options: [
        {
          label: '半文盲',
          value: '半文盲',
        },
        {
          label: '文盲',
          value: '文盲',
        },
        {
          label: '小学',
          value: '小学',
        },
        {
          label: '初中',
          value: '初中',
        },
        {
          label: '高中',
          value: '高中',
        },
        {
          label: '大学',
          value: '大学',
        },
        {
          label: '研究生',
          value: '研究生',
        },
        {
          label: '博士',
          value: '博士',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'maritalStatus',
    label: '婚姻状况',
    component: 'Select',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请选择婚姻状况',
      options: [
        {
          label: '已婚',
          value: '已婚',
        },
        {
          label: '未婚',
          value: '未婚',
        },
        {
          label: '离婚',
          value: '离婚',
        },
        {
          label: '丧偶',
          value: '丧偶',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'militaryServiceStatus',
    label: '兵役状况',
    component: 'Select',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入兵役状况',
      options: [
        {
          label: '未服兵役',
          value: '未服兵役',
        },
        {
          label: '服现役',
          value: '服现役',
        },
        {
          label: '预备役',
          value: '预备役',
        },
        {
          label: '退出现役',
          value: '退出现役',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'religion',
    label: '宗教信仰',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入宗教信仰',
    },
    colProps: { span: 12 },
  },
  {
    field: 'profession',
    label: '职业',
    component: 'Input',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入职业',
    },
    colProps: { span: 12 },
  },
  {
    field: 'politicsStatus',
    label: '政治面貌',
    component: 'Select',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请选择政治面貌',
      options: [
        {
          label: '群众',
          value: '群众',
        },
        {
          label: '共青团员',
          value: '共青团员',
        },
        {
          label: '中共党员',
          value: '中共党员',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'hjStatus',
    label: '户籍状态',
    component: 'Select',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请选择户籍状态',
      options: [
        {
          label: '在籍',
          value: '在籍',
        },
        {
          label: '不在籍',
          value: '不在籍',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'registDate',
    label: '登记日期',
    component: 'DatePicker',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入登记日期',
      style: { width: '100%' },
    },
    colProps: { span: 12 },
  },
  {
    field: 'familyId',
    label: '家庭',
    component: 'Input',
    show: false,
    required: false,
    componentProps: {
      disabled: false,
      placeholder: '请输入家庭',
    },
    colProps: { span: 12 },
  },
  {
    field: 'isDifficultGroup',
    label: '困难群体',
    component: 'Select',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请选择是否为困难群体',
      options: [
        {
          label: '是',
          value: 1,
        },
        {
          label: '否',
          value: 0,
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'age',
    label: '年龄',
    component: 'Input',
    show: true,
    required: true,

    componentProps: {
      disabled: false,
      placeholder: '请输入年龄',
    },
    colProps: { span: 12 },
  },
  {
    field: 'employmentStatus',
    label: '就业状况',
    component: 'Select',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请选择就业状况（失业、在业）',
      options: [
        {
          label: '失业',
          value: '失业',
        },
        {
          label: '就业',
          value: '就业',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'isDisability',
    label: '是否残疾',
    component: 'Select',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入是否残疾',
      options: [
        { label: '是', value: false },
        { label: '否', value: true },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'disabilityLevel',
    label: '残疾等级',
    component: 'Select',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请选择残疾等级',
      options: [
        {
          label: 'A级',
          value: 'A级',
        },
        {
          label: 'B级',
          value: 'B级',
        },
        {
          label: 'C级',
          value: 'C级',
        },
        {
          label: 'D级',
          value: 'B级',
        },
        {
          label: '暂无',
          value: '暂无',
        },
      ],
    },
    colProps: { span: 12 },
  },
  {
    field: 'dateCreated',
    label: '创建时间',
    component: 'Input',
    show: false,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入创建时间',
    },
    colProps: { span: 12 },
  },
  {
    field: 'dateModified',
    label: '修改时间',
    component: 'Input',
    show: false,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入修改时间',
    },
    colProps: { span: 12 },
  },
  {
    field: 'remark',
    label: '备注',
    component: 'InputTextArea',
    show: true,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入备注',
      style: {
        width: '50%',
      },
    },
    colProps: { span: 24 },
  },
  {
    field: 'createdBy',
    label: '创建人id',
    component: 'Input',
    show: false,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入创建人id',
    },
    colProps: { span: 12 },
  },
  {
    field: 'createdByName',
    label: '创建人',
    component: 'Input',
    show: false,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入创建人',
    },
    colProps: { span: 12 },
  },
  {
    field: 'modifiedBy',
    label: '修改人Id',
    component: 'Input',
    show: false,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入修改人Id',
    },
    colProps: { span: 12 },
  },
  {
    field: 'modifiedByName',
    label: '修改人',
    component: 'Input',
    show: false,
    required: false,

    componentProps: {
      disabled: false,
      placeholder: '请输入修改人',
    },
    colProps: { span: 12 },
  },
];
